#include<stdio.h>
#include<stdlib.h>
#include<string.h>

void manage_s();
void enter_s();
void enter_sk();
void enter_sf();
void insert_s();
void change_s();
void delete_s();
void find_s();
void findbyid_s();
void findbyname_s();
void show_s();

void manage_c();
void enter_c();
void enter_ck();
void enter_cf();
void insert_c();
void change_c();
void delete_c();
void find_c();
void findbyid_c();
void findbyname_c();
void show_c();

void selectcourse();
void updatedata();
int findscore(int id);
void store_s();
void store_c();

struct course
{
    int id;
    char name[40];
    char type[20];
    int time;
    int credit;
    int selectde; //已选
    int limit; //上限
    struct course *next;
};

struct student
{
    char id[15];
    char name[40];
    int num; //课程数量
    int class[10];
    int credit;
    struct student *next;
};

struct student *head1;
struct course *head2;


